var express = require('express');
var router = express.Router();
var Api = require('../models/api'),
 apix = new Api();

var qs = require('querystring');
var http = require('http');

/* GET home page. */
router.get('/', function(req, res, next) {


    apix.getCityList(results => {
        cityData=results;



    res.render('main', { title: 'Express',data:cityData });

    });
});


module.exports = router;
